const jwt = require('jsonwebtoken')
const expressJWT = require('express-jwt')
const secretKey = 'jiamila'
//登录成功后调用

const tokenStr=jwt.sign({username:'123'},secretKey,{expiresIn:'30s'})
//z红渐渐
app.use(expressJWT({secret}).unless({path:/^\/api\//}))